package cn.seaboot.admin.activemq;

import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.integration.mqtt.support.MqttHeaders;
import org.springframework.messaging.handler.annotation.Header;
import org.springframework.stereotype.Component;

/**
 * 消息发送接口
 *
 * @author Mr.css
 * @version 2024-10-15 17:30
 */
@Component
@MessagingGateway(defaultRequestChannel = "mqttOutboundChannel")
public interface MqttGateway {

    void send(@Header(MqttHeaders.TOPIC) String topic, String data);
}